import request from '@/utils/request'

// 查询物资申请列表
export function listWzsq(query) {
  return request({
    url: '/wzgl/wzsq/list',
    method: 'get',
    params: query
  })
}

// 查询物资申请详细
export function getWzsq(wzsqId) {
  return request({
    url: '/wzgl/wzsq/' + wzsqId,
    method: 'get'
  })
}

// 新增物资申请
export function addWzsq(data) {
  return request({
    url: '/wzgl/wzsq',
    method: 'post',
    data: data
  })
}

// 修改物资申请
export function updateWzsq(data) {
  return request({
    url: '/wzgl/wzsq',
    method: 'put',
    data: data
  })
}

// 删除物资申请
export function delWzsq(wzsqId) {
  return request({
    url: '/wzgl/wzsq/' + wzsqId,
    method: 'delete'
  })
}

// 修改物资申请明细
export function updateWzsqSqmx(data) {
  return request({
    url: '/wzgl/wzsq/updateWzsqSqmx',
    method: 'put',
    data: data
  })
}
